<!DOCTYPE html>
<html lang="ch" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <style>
    </style>
</head>
<body style="text-align: center">
<h1>核酸检测系统</h1>
<form th:action="@{/appInfo/getList}">
    <select name="hosptialId" >
        <option value="0">---请选择----</option>
        <option th:each="hospital:${hospitals}"
                th:selected="${hospital.getId()==hosptialId}"
                th:value="${hospital.getId()}"
                th:text="${hospital.getHosptialname()}"></option>
    </select>
    <input type="submit" value="查询">
</form>
 <table border="1px" style="margin: auto">
     <tr>
         <td>被检测人</td>
         <td>被检测人手机号</td>
         <td>被检测人身份证</td>
         <td>检测机构</td>
         <td>检测日期</td>
         <td>检测结果</td>
         <td>操作</td>
     </tr>
     <tr th:each="app:${getList}">
         <td  th:text="${app.getSoftwarename()}"></td>
         <td th:text="${app.getSoftwaresize()}"></td>
         <td th:text="${app.getApkname()}"></td>
         <td th:text="${app.getHosptialName()}"></td>
         <td th:text="${#dates.format(app.getCreatedby(),'yyyy-MM-dd')}"></td>
         <td th:text="${app.getDevid()}==1?'检测中':'确诊'"></td>
         <td  th:text="${app.getSoftwaresize()}"></td>
     </tr>
 </table>
</body>
</html>